package com.qhit.dao.imp;

import com.qhit.dao.BaseDao;
import com.qhit.entity.Bank;

/**
 * TODO
 *
 * @author 村头老杨头
 * @version 1.0
 * @date 2021/9/29 10:03
 */
public class BankDaoImpl extends BaseDao {
    public int updateBank(Bank bank){
        String sql = "update bank set balance=? where name=?";
        return executeUpdate(sql, bank.getBalance(), bank.getName());
    }
}
